package com.zxq.web.iot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zxq.web.iot.mapper.IotProjectMapper;
import com.zxq.web.iot.domain.IotProject;
import com.zxq.web.iot.service.IIotProjectService;

/**
 * 产品Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
@Service
public class IotProjectServiceImpl implements IIotProjectService 
{
    @Autowired
    private IotProjectMapper iotProjectMapper;

    /**
     * 查询产品
     * 
     * @param id 产品主键
     * @return 产品
     */
    @Override
    public IotProject selectIotProjectById(Long id)
    {
        return iotProjectMapper.selectIotProjectById(id);
    }

    /**
     * 查询产品列表
     * 
     * @param iotProject 产品
     * @return 产品
     */
    @Override
    public List<IotProject> selectIotProjectList(IotProject iotProject)
    {
        return iotProjectMapper.selectIotProjectList(iotProject);
    }

    /**
     * 新增产品
     * 
     * @param iotProject 产品
     * @return 结果
     */
    @Override
    public int insertIotProject(IotProject iotProject)
    {
        return iotProjectMapper.insertIotProject(iotProject);
    }

    /**
     * 修改产品
     * 
     * @param iotProject 产品
     * @return 结果
     */
    @Override
    public int updateIotProject(IotProject iotProject)
    {
        return iotProjectMapper.updateIotProject(iotProject);
    }

    /**
     * 批量删除产品
     * 
     * @param ids 需要删除的产品主键
     * @return 结果
     */
    @Override
    public int deleteIotProjectByIds(Long[] ids)
    {
        return iotProjectMapper.deleteIotProjectByIds(ids);
    }

    /**
     * 删除产品信息
     * 
     * @param id 产品主键
     * @return 结果
     */
    @Override
    public int deleteIotProjectById(Long id)
    {
        return iotProjectMapper.deleteIotProjectById(id);
    }
}
